<?php
    namespace app\index\validate;
    use think\Validate;
    class Member extends Validate{
        protected $rule=[
            'user' => 'require|unique:menber',
            'pwd' => 'require|min:6',
            'repwd' => 'confirm:pwd',
            
        ];
        protected $message=[
            'user.require' => '用户名不能为空',
            'user.unique' => '用户名已经重复',
            'pwd.require' => '密码不能为空',
            'repwd.confirm' => '密码重复错误',
            'pwd.min' => '密码最少六位',
        ];

    }

?>